package com.example.clxy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Question {
    private String questionid;

    private String content;

    private String achoice;

    private String bchoice;

    private String cchoice;

    private String dchoice;

    private String answer;

    private String flag;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createdTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updatedTime;

    public Question(String questionid, String content, String achoice, String bchoice, String cchoice, String dchoice, String answer, String flag, Date createdTime,Date updatedTime) {
        this.questionid = questionid;
        this.content = content;
        this.achoice = achoice;
        this.bchoice = bchoice;
        this.cchoice = cchoice;
        this.dchoice = dchoice;
        this.answer = answer;
        this.flag = flag;
        this.createdTime = createdTime;
        this.updatedTime = updatedTime;
    }

    public Question() {
        super();
    }

    public String getQuestionid() {
        return questionid;
    }

    public void setQuestionid(String questionid) {
        this.questionid = questionid == null ? null : questionid.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getAchoice() {
        return achoice;
    }

    public void setAchoice(String achoice) {
        this.achoice = achoice == null ? null : achoice.trim();
    }

    public String getBchoice() {
        return bchoice;
    }

    public void setBchoice(String bchoice) {
        this.bchoice = bchoice == null ? null : bchoice.trim();
    }

    public String getCchoice() {
        return cchoice;
    }

    public void setCchoice(String cchoice) {
        this.cchoice = cchoice == null ? null : cchoice.trim();
    }

    public String getDchoice() {
        return dchoice;
    }

    public void setDchoice(String dchoice) {
        this.dchoice = dchoice == null ? null : dchoice.trim();
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag == null ? null : flag.trim();
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}